{% set product = hookable_metadata.context.resource %}

{% if product.isSimple %}
    {% set variant_form = hookable_metadata.context.form.variant %}

    <div class="tab-pane {% if hookable_metadata.configuration.active|default(false) %}show active{% endif %}" id="product-channel-pricing" role="tabpanel" tabindex="0">
        <div class="card mb-3">
            {% hook 'channel_pricing' with { form: variant_form } %}
        </div>
    </div>
{% endif %}
